#ifndef __INPUTHANDLER_H
#define __INPUTHANDLER_H

#include <SFML/Graphics.hpp>

// The buttons we can request the state of
enum{
	BTN_LEFT,	// 0
	BTN_RIGHT,	// 1
	BTN_UP,		// 2
	BTN_DOWN,	// 3
	BTN_ACTION,	// 4
	BTN_TALK,	// 5
	BTN_JUMP,	// 6
	BTN_ENTER,	// 7
	BTN_ESC		// 8
};

// Our Inputhandler that'll do inputhandling
// and checking of button states
class inputHandler
{
public:
	inputHandler();
	~inputHandler(){}
	void doInput(sf::RenderWindow &window);
	bool isPressed(int id);
	
private:
	sf::Event eventHandler;
	bool leftPressed;
	bool rightPressed;
	bool upPressed;
	bool downPressed;
	bool actionPressed;
	bool talkPressed;
	bool jumpPressed;
	bool enterPressed;
	bool escPressed;
};

#endif